package com.ffcs.crmd.tsp.server.job.info;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import io.netty.channel.Channel;

/**
 * 
 * 功能说明:通道任务信息和下标组合
 *
 * @author ZHONGFUHUA
 * 
 * @since 
 *
 */
public class JobChannelTimeInfo {
    
    /**
     * 通道数组
     */
    private final Map<Channel, Long> channelMap = new ConcurrentHashMap<Channel, Long>();
    
    /**
     * 
     * 功能说明:添加通道
     * 
     * @return
     */
    public Map<Channel, Long> getChannelMap() {
        return channelMap;
    }
    
    /**
     * 
     * 功能说明:获取通道
     * 
     * @param channel
     */
    public void putChannelMap(Channel channel){
        this.channelMap.put(channel, System.currentTimeMillis());
    }
    
}
